<?php
namespace cesi\plastprodBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use cesi\plastprod\Entity\User;

class UserType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('user_login','text', array('required' => true))
            ->add('user_password','password', array('required' => true))
            ->add('user_mail','email', array('required' => true))
            ->add('user_firstname','text', array('required' => false))
            ->add('user_lastname','text', array('required' => false))
            //->add('user_status')
            //->add('country')
            //->add('picture')

        ;
    }

    public function getName()
    {
        return 'cesi_plastprodbundle_usertype';
    }
}
